package cn.edu.scujcc;

import java.util.List;
import java.util.Optional;

import org.springframework.data.mongodb.repository.MongoRepository;

public interface CommodityRepository extends MongoRepository<Commodity, String> {
	public List<Commodity> findByName(String name);

	public Optional<Commodity> findById(User user);

	public void deleteById(User id);
}
